package com.example.my_project.auto_v2.enums;


/**
 * @Author: chenbo
 * @Description:
 * @Date: Created in 14:43 2018/7/19
 * @Modified By:
 */
public enum BodyType {

    FORM_DATA(0,""),
    X_WWW_FORM_URLENCODED(1,"application/x-www-form-urlencoded"),
    TEXT_PLAIN(2,"text/plain"),
    JSON(3,"application/json"),
    JAVASCRIPT(4,"application/javascript"),
    XML_APPLICATION(5,"application/xml"),
    XML_TEXT(6,"text/xml"),
    HTML(7,"text/html"),
    TEXT(8,"");

    private Integer index;
    private String value;

    BodyType(int index, String value) {
        this.index=index;
        this.value=value;
    }

    public Integer getIndex() {
        return this.index;
    }

    public String getValue() {
        return this.value;
    }
}
